extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]九八式射击延迟装置"
	att.atk = 35
	att.mgiAtk = 35
	att.air = 35
	info = "延长技能冷却时间40%，提高自身技能伤害40%\n[color=#DC143C]同时装备三件时可升级[/color]"

func _connect():
	._connect()
	masCha.connect("onAtkChara",self,"onAtkChara")
	masCha.connect("onCastCdSkill",self,"onCastCdSkill")

func onCastCdSkill(id):
	var sk = masCha.getSkill(id)
	sk.nowTime -= sk.cd * 0.6

func onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.SKILL:
		atkInfo.factor += 0.4

func upgrade():
	name = "[color=#FFFF00][史诗]九八式射击延迟装置"
	att.atk = 70
	att.mgiAtk = 70
	att.air = 70
	info = "延长技能冷却时间40%，提高自身技能伤害40%"